Tables [dbo].[WorkflowInstance]
Properties
PropertyValue
Created10:31:43 AM Tuesday, March 02, 2010
Last Modified1:20:17 PM Thursday, February 23, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_WorkflowInstance: WorkflowInstanceKeyWorkflowInstanceKeyuniqueidentifier16
No
ProcessIduniqueidentifier16
Yes
InstanceGraphimagemax
Yes
Foreign Keys FK_WorkflowInstance_UserMain_LockedBy: [dbo].[UserMain].LockedByUserKeyIndexes IX_WorkflowInstance_LockedByUserKey: LockedByUserKeyLockedByUserKeyuniqueidentifier16
Yes
LockedOndatetime8
Yes
KeepAlivedatetime8
Yes
LogTextntextmax
Yes
WorkflowStatusnvarchar(20)40
Yes
Foreign Keys FK_WorkflowInstance_UserMain_InitiatedBy: [dbo].[UserMain].InitiatedByUserKeyIndexes IX_WorkflowInstance_InitiatedByUserKey: InitiatedByUserKeyInitiatedByUserKeyuniqueidentifier16
Yes
InitiatedOndatetime8
Yes
ProcessNamenvarchar(50)100
Yes
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_WorkflowInstance: WorkflowInstanceKeyPK_WorkflowInstanceWorkflowInstanceKey
Yes
IX_WorkflowInstance_InitiatedByUserKeyInitiatedByUserKey
IX_WorkflowInstance_LockedByUserKeyLockedByUserKey
Foreign Keys Foreign Keys
NameColumns
FK_WorkflowInstance_UserMain_InitiatedByInitiatedByUserKey->[dbo].[UserMain].[UserKey]
FK_WorkflowInstance_UserMain_LockedByLockedByUserKey->[dbo].[UserMain].[UserKey]
SQL Script
CREATE TABLE [dbo].[WorkflowInstance]
(
[WorkflowInstanceKey] [uniqueidentifier] NOT NULL,
[ProcessId] [uniqueidentifier] NULL,
[InstanceGraph] [image] NULL,
[LockedByUserKey] [uniqueidentifier] NULL,
[LockedOn] [datetime] NULL,
[KeepAlive] [datetime] NULL,
[LogText] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[WorkflowStatus] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[InitiatedByUserKey] [uniqueidentifier] NULL,
[InitiatedOn] [datetime] NULL,
[ProcessName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO
ALTER TABLE [dbo].[WorkflowInstance] ADD CONSTRAINT [PK_WorkflowInstance] PRIMARY KEY CLUSTERED ([WorkflowInstanceKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_WorkflowInstance_InitiatedByUserKey] ON [dbo].[WorkflowInstance] ([InitiatedByUserKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_WorkflowInstance_LockedByUserKey] ON [dbo].[WorkflowInstance] ([LockedByUserKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[WorkflowInstance] ADD CONSTRAINT [FK_WorkflowInstance_UserMain_InitiatedBy] FOREIGN KEY ([InitiatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
ALTER TABLE [dbo].[WorkflowInstance] ADD CONSTRAINT [FK_WorkflowInstance_UserMain_LockedBy] FOREIGN KEY ([LockedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
Uses
Used By